package com.xinhe.web.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Data
@Entity
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "tb_member")
public class Member {
    @Id
    @ApiModelProperty("id")
    private Long id;
    @ApiModelProperty("是否被移除 0否 1是")
    private Integer removed;
    @ApiModelProperty("标注")
    private String remark;
    @ApiModelProperty("版本数")
    private Integer versionNum;
    @ApiModelProperty("创建时间")
    private Date createTime;
    @ApiModelProperty("更新时间")
    private Date updateTime;
    @ApiModelProperty("创建人")
    private Long fCreateUserId;
    @ApiModelProperty("更新人")
    private Long fUpdateUserId;
    @ApiModelProperty("服务中心id")
    private Long fServiceId;
    @ApiModelProperty("会员id")
    private Long fUserId;
    @ApiModelProperty("会员状态 FREEZE(\"冻结\"),NORMAL(\"正常\");")
    private String memberStatus;
    @ApiModelProperty("头像")
    private String iconPath;
    @ApiModelProperty("昵称")
    private String nickname;
    @ApiModelProperty("姓名")
    private String name;
    @ApiModelProperty("手机号")
    private String mobile;
    @ApiModelProperty("编码(手机号)")
    private String code;
    @ApiModelProperty("上级编码(手机号)")
    private String parentCode;
    @ApiModelProperty("性别(1:男,2：女)")
    private Integer gender;
    @ApiModelProperty("等级 COMMON(\"芯禾会员\"),HOME_ANGEL(\"家园天使\");")
    private String level;
    @ApiModelProperty("认养证书时间")
    private Date adoptionDate;
    @ApiModelProperty("角色1 NO(\"取消\"),FOUNDER(\"创始人\"),SMART_PARTNER(\"智慧合伙人\");")
    private String role;
    @ApiModelProperty("认养数量")
    private Integer adoptionNum = Integer.valueOf(0);
    @ApiModelProperty("登录密码")
    private String password;
    @ApiModelProperty("新推荐人")
    private String newReference;
    @ApiModelProperty("角色2 NO(\"取消\"),FOUNDER(\"创始人\"),SMART_PARTNER(\"智慧合伙人\");")
    private String roleTwo;
    @ApiModelProperty("会员标识")
    private Integer identifying = Integer.valueOf(0);
    @ApiModelProperty("直推人数")
    private Integer twoThawNo = Integer.valueOf(0);
    @ApiModelProperty("间推人数")
    private Integer threeThawNo = Integer.valueOf(0);
    @ApiModelProperty("直推认养数量")
    private Integer twoThawAdopted = Integer.valueOf(0);
    @ApiModelProperty("间推认养数量")
    private Integer threeThawAdopted = Integer.valueOf(0);
    @ApiModelProperty("是否导入用户 0是 1否")
    private Integer isImportMember = Integer.valueOf(0);
    @ApiModelProperty("脱离关系前的认养数量")
    private Integer disengageNo = Integer.valueOf(0);
}
